package com.mgxy.GlodMiner;

import java.awt.*;

public class Gold extends Object {

    Gold() {
        this.x = (int) (Math.random() * 700);
        this.y = (int) (Math.random() * 550 + 330);
        this.width = 52;
        this.height = 52;
        this.flag = false;
        this.m = 40;
        this.count=4;
        this.objtype=1;
        this.img = Toolkit.getDefaultToolkit().getImage(Gold.class.getClassLoader().getResource("resources/gold1.gif"));
    }
}

class GoldMini extends Gold{
    GoldMini() {
        this.width = 36;
        this.height = 36;
        this.m = 20;
        this.count=2;
        this.img = Toolkit.getDefaultToolkit().getImage(GoldMini.class.getClassLoader().getResource("resources/gold0.gif"));
    }
}

class GoldPlus extends Gold{
    GoldPlus() {
        this.x=(int) (Math.random()*650);
        this.width = 105;
        this.height = 105;
        this.m = 75;
        this.count=8;
        this.img = Toolkit.getDefaultToolkit().getImage(GoldPlus.class.getClassLoader().getResource("resources/gold2.gif"));
    }
}
